MoveControl
MoveControl Change the position of a control
#include <Controls.h> Control Manager
void MoveControl( theControl, toHoriz, toVert );
ControlHandle theControl ; handle of control to move
short toHoriz ; horizontal position, in local coordinates
short toVert ; vertical position, in local coordinates
MoveControl changes the position of a control. Call it to update the position
of scroll bars when you horizontally re-size a window.
theControl is a handle leading to a variable-length ControlRecord structure. It
specifies which control to move.
toHoriz and . . .
toVert specify the new position for the control. The control will be drawn
with its top left corner at this coordinate pair, expressed in local
coordinates.
Returns: none

Notes: MoveControl changes the position of theControl by erasing it, off setting
the contrlRect field of its ControlRecord, and redrawing it at the new
position.
You will use this in a sequence that sizes a window. The SizeWindow
function does not move controls; so after sizing a window, scroll bars
remain somewhere in the middle of the window or at invalid coordinates
outside of the window. A normal window-sizing function ( executed upon
getting an inGrow return value from FindWindow after a mouseDown
event from WaitNextEvent) will contain these elements:
GrowWindow drag a gray window outline
SizeWindow update its size in the WindowRecord
InvalRect prepare for an update event on the contents
MoveControl reposition scroll bars to match window
SizeControl make scroll bars longer or shorter
UpdtMyWndo() update contents of window
DrawControls (may be needed if controls erased by update)
Controls normally remain stationary relative to their enclosing window,
but if you should need to let the user move one or move a control indicator,
you may use DragControl.